#ifndef GAMEOVERNETWORKEVENT_H_
#define GAMEOVERNETWORKEVENT_H_

#include "NetworkEvent.h"

class GameOverNetworkEvent : public NetworkEvent
{
public:
    struct Data
    {
        char winner[20];
    };

    struct Message
    {
        Header header;
        Data data;
    };

    GameOverNetworkEvent(const std::string& winner);
    GameOverNetworkEvent(const Header& header, const Data& data);
    virtual ~GameOverNetworkEvent();

    virtual void* getMessageBlob();
    virtual size_t getMessageBlobSize();

    virtual GameState* visitGamePlayState(GamePlayState* gamePlayState) const;

private:
    Message message;
};

#endif
